# -*- coding: utf-8 -*-
#version：v1.0.3
import os
import random
import threading
import time
import serial
import serial.tools.list_ports
import datetime
import sys
import itertools


if __name__ == '__main__':
    dev_ttyUSB_Judge2 = os.popen("ls -l /dev/ttyUSB* | grep '/dev/ttyUSB2' | cut -d- -f 1").read()
    dev_ttyUSB_Judge1 = os.popen("ls -l /dev/ttyUSB* | grep '/dev/ttyUSB1' | cut -d- -f 1").read()
    print(dev_ttyUSB_Judge1)
    if dev_ttyUSB_Judge2 == "\n":
        print("ok")
        #sys.exit()
        print("... ...")
    else:
        print("no NULL")

